package com;

import com.util.boxs.BoxWorld;
import com.util.boxs.bodys.RectBody;
import com.util.boxs.paints.PaintableObject;

import javax.swing.*;

public class Wall extends PaintableObject {
    private ImageIcon image;

    public static Wall getWood200(int x,int y){
        Wall wall = new Wall(x,y,32,198);
        wall.image = Images.wood200;
        return wall;
    }
    public static Wall getWood150(int x,int y){
        Wall wall = new Wall(x,y,32,148);
        wall.image = Images.wood150;
        return wall;
    }
    public static Wall getWood100(int x,int y){
        Wall wall = new Wall(x,y,32,98);
        wall.image = Images.wood100;
        return wall;
    }

    public Wall(int x, int y,int width,int height) {
        super(x,y,width,height);
    }

    @Override
    public ImageIcon getImage() {
        return image;
    }

}
